/*  1:   */package com.mrd.packet;
/*  2:   */
/*  5:   */public class PacketConst
/*  6:   */{
/*  7:   */  public static final String PACKET_ID = "packetId";
/*  8:   */  
/* 10:   */  public static final String PACKET_STAMP = "stamp";
/* 11:   */  
/* 13:   */  public static final String PACKET_RET_CODE = "retCode";
/* 14:   */  
/* 16:   */  public static final String PACKET_FLAG = "flag";
/* 17:   */  
/* 19:   */  public static final String MESSAGE_DEFAULT_ENCODING = "UTF-8";
/* 20:   */  
/* 22:   */  public static final String KEY_DATA_BATCH = "v";
/* 23:   */  
/* 25:   */  public static final String KEY_COMMAND = "c";
/* 26:   */  
/* 27:   */  public static final String KEY_RESULT = "rs";
/* 28:   */  
/* 29:   */  public static final String KEY_SESSION_USER_ID = "userId";
/* 30:   */  
/* 31:   */  public static final String KEY_MESSAGE_ID = "mid";
/* 32:   */  
/* 33:   */  public static final String KEY_FILTER_HANDLE = "filter";
/* 34:   */  
/* 35:35 */  public static final Integer VALUE_RESULT_SUCCESS = Integer.valueOf(1);
/* 36:   */  
/* 37:37 */  public static final Integer VALUE_RESULT_FAILED = Integer.valueOf(0);
/* 38:   */  
/* 39:39 */  public static final Integer VALUE_RESULT_NEEDONLINE = Integer.valueOf(-99);
/* 40:   */  
/* 42:   */  public static final int VALUE_RESULT_MESSAGE_EMPTY = -100;
/* 43:   */  
/* 45:   */  public static final int VALUE_RESULT_MESSAGE_PARSE_ERROR = -101;
/* 46:   */  
/* 48:   */  public static final int VALUE_RESULT_COMMAND_EMPTY = -102;
/* 49:   */  
/* 51:   */  public static final int VALUE_RESULT_COMMAND_NOT_EXIST = -103;
/* 52:   */  
/* 54:   */  public static final int VALUE_RESULT_COMMAND_LOCKED = -104;
/* 55:   */  
/* 57:   */  public static final int VALUE_RESULT_PACKET_FLAG = 9;
/* 58:   */  
/* 59:   */  public static final int RETCODE_SUCCESS = 0;
/* 60:   */  
/* 61:   */  public static final int RETCODE_PACKETID_NOT_EXIST = 1;
/* 62:   */  
/* 63:   */  public static final int RETCODE_PACKETID_LOCKED = 2;
/* 64:   */  
/* 65:   */  public static final int RETCODE_USER_NEEDONLINE = 3;
/* 66:   */  
/* 67:   */  public static final int RETCODE_REQUEST_MESSAGE_EMPTY = 4;
/* 68:   */  
/* 69:   */  public static final int RETCODE_MESSAGE_PARSE_ERROR = 5;
/* 70:   */  
/* 71:   */  public static final String KEY_LAST_HEARBEAT = "last_hearbeat";
/* 72:   */  
/* 74:   */  public static Integer getResultValue(boolean rs)
/* 75:   */  {
/* 76:76 */    return rs ? VALUE_RESULT_SUCCESS : VALUE_RESULT_FAILED;
/* 77:   */  }
/* 78:   */}


/* Location:           D:\MMOServer\MMOServer\lib\mrd-framework\
 * Qualified Name:     com.mrd.dolphin.net.packet.PacketConst
 * JD-Core Version:    0.7.0-SNAPSHOT-20130630
 */